package cn.wolfcode.mongodb.repository;

import cn.wolfcode.mongodb.domain.User;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMongoRepository extends MongoRepository<User,ObjectId> {

    //自定义
    User findByName(String name);

}
